package com.bawei.app2

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        var uri = intent.data
        if(uri!= null){
            var name = uri.getQueryParameter("name")
            Toast.makeText(this,name, Toast.LENGTH_SHORT).show()
        }
    }
}